import request from "@/js/utils/request";
export const uploadFile = async (file) => {
    alert("uploadFile")
  const formData = new FormData();
  formData.append('file', file);
  const response = await request.postFormData('/oss/files', formData, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  });
  return response.data;
}
